<?php

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

Route::get('/', function () {
    return view('welcome');
});

Route::get('/index', 'GameController@index');

Route::get('/addtype', 'GameController@addtype');
Route::get('/type', 'GameController@type');
Route::post('/add', 'GameController@add');
Route::get('/edit/{id}', 'GameController@edit');
Route::post('/editor', 'GameController@editor');
Route::get('/delete', 'GameController@delete');

Route::get('/addgame', 'GameController@addgame');
Route::get('/games', 'GameController@games');
Route::post('/addgamefunc', 'GameController@addgamefunc');
Route::get('/deleteGame', 'GameController@deleteGame');
Route::get('/editgame/{id}', 'GameController@editgame');
Route::post('/gameEditor', 'GameController@gameEditor');


Route::get('/user', 'GameController@user');

Route::post('/desk', 'GameController@desk');
Route::post('/aynak', 'GameController@aynak');
Route::get('/createImg', 'GameController@createImg');

Route::get('/maxik', 'MaxikController@maxik');


